package com.active.hackson.database.bean;

import java.io.Serializable;

public class DatabaseType implements Serializable {
    private static final long  serialVersionUID = -5779066763351551114L;
    public static DatabaseType mysql            = new DatabaseType( 1, "MySQL" );
    private int                id;
    private String             type;

    public DatabaseType( int id, String type ) {
        this.id = id;
        this.type = type;
    }

    public int getId() {
        return id;
    }

    public void setId( int id ) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType( String type ) {
        this.type = type;
    }

    @Override
    public boolean equals( Object obj ) {
        return ( ( DatabaseType ) obj ).id == this.id;
    }
}
